package com.gxzy.domain.view;

import com.gxzy.config.FinalPoolCfg;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: FileInfoUrlView
 * @Deprecated: 文件访问概要信息
 * @Author: 胡隆河
 * @Date: 2020/2/26 11:08
 **/

@Entity
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor                 //无参构造
@AllArgsConstructor                //有参构造
@Table(name = FinalPoolCfg.TB_FILEINFO_NAME)
@org.hibernate.annotations.Table(appliesTo = FinalPoolCfg.TB_FILEINFO_NAME, comment = "文件上传记录")
public class FileInfoUrlView {
    @Id
    private Long id;                                        // 主键

    private boolean flag = true;                            // 是否可用

    private boolean isDel = false;                          // 是否已删除

    private String url;                                     // 名称,这里指文件访问路径

    private String parent;                                  // 所属者的上级,这里指某一张表

    private Long parentId;                                  // 所属者
}
